package com.joyveb.lbos.restful.spring;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;

/**
 * Copyright © 2014畅享互联.
 * 
 * @Title: QueryMapperBean.java
 * @Prject: LBOS
 * @Package: com.joyveb.lbos.restful.spring
 * @date: 2014年8月20日 下午2:28:36
 * @author: yangqiju
 */
@Data
public class QueryMapperBean {
	private List<OrBean> or = new ArrayList<QueryMapperBean.OrBean>();
	private List<EqualBean> equal = new ArrayList<QueryMapperBean.EqualBean>();
	private List<ConditionBean> condition = new ArrayList<QueryMapperBean.ConditionBean>();
	private List<LikeBean> likes = new ArrayList<QueryMapperBean.LikeBean>();

	@Data
	public static class LikeBean {
		private String fieldName;
		private String regex;
		private String options;
	}
	
	@Data
	public static class ConditionBean {
		private String fieldName;
		private String condi;
		private Object value;
	}
	
	@Data
	public static class EqualBean {
		private String fieldName;
		private Object value;
	}
	
	@Data
	public static class OrBean{
		private String fieldName;
		private Object value;
	}
	
}
